<html>
    <head>
        <title>Ankle Biter's Site Update</title>
<link rel="stylesheet" href="<?php echo base_url();?>/system/application/css/styles.css" type="text/css" media="screen"/>
    </head>
    <body>
        <div class="center" >

            <table style="width:1000px; height: 150px;" border="1">
    <tr>

        <td>
            <img src="<?php echo base_url();?>/system/application/images/petshopbanner.jpg" alt="Ankle Biter's Pet Shop" />
        </td>
        </tr>
</table>
            <br />
            <table class="right" border="1">
                <tr>

                    <td class="right">
                        <form name="pet_list_page_button_form" action="display_pet_list" method="POST" style="display: inline;">
                            <input type="submit" value="Home / Pets List" name="pet_list_page_button" /></form>
                        <form name="about_us_page_button_form" action="display_about_us" method="POST" style="display: inline;">
                            <input type="submit" value="About us" name="about_us_page_button" /></form>
                        <form name="admin_login_page_button_form" action="display_site_update" method="POST" style="display: inline;">
           <input type="submit" value="Site Administration" name="site_update_page_button" /></form>
                    </td>
 </tr>
 </table>
            <br />
     <table style="width:100%;" border="2">
                <tr>

                    <td class="style2" style="text-align: center">
                        Update the Site
                    </td>

                </tr>
                <tr>
                    <td style="background-color:#b5e619;">
                        
                        <table border="1" cellpadding="3" cellspacing="3" class="detailsbox" style="background-color:white;">
                            <form name="edit_about_button_form" action="edit_about_us" method="POST" style="display: inline;">
                                <tr>
                                    <td><h3 style="text-align: center">Edit About Us page Text:</h3></td>
                                </tr>
                                <tr>
                                    <td style="text-align: center">
                                        <textarea id="about_us_input" cols="70" rows="6" name="about_us_input"><?php echo $about; ?></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: center"><input type="submit" value="Edit About Us" name="edit_about_button" /></td>
                                </tr>
                            </form>
                        </table>
                        <br />
                        <table border="1" class="emailbox" style="background-color:white;">
           <tr>
               <td><h2 style="text-align: center">Here you can add a new pet listing or edit/delete an existing one.</h2>
                        <h3 style="text-align: center">To edit or delete a listing, select a Pet from the drop down menu and click the button:</h3></td>
           </tr>
           <tr>
               <td>

                        <table border="1" cellpadding="3" cellspacing="3" class="detailsbox" style="background-color:white;">

                            <tr>

                                <td>Select Pet Name</td>
                                <td>Edit or Delete Selected Pet Information</td>
                                <td>Add New Pet</td>
                            </tr>

                            <tr>

                            <form name="edit_pet_page_button_form" action="display_edit_pet" method="POST">
                                <td>
                                    <select name="pet_name_list">
                                        <?php foreach($pets as $pet): ?>
                                        <option value='<?php echo $pet->name; ?>' ><?php echo $pet->name; ?></option>
                                        <?php endforeach; ?></select>
                                </td>
                                <td>
                                    <input type="submit" value="Edit or Delete selected Pet" name="edit_pet_page_button" /></td></form>

                            <td><form name="add_pet_page_button_form" action="display_add_pet" method="POST" style="display: inline;">
                                    <input type="submit" value="Add new Pet" name="add_pet_page_button" /></form></td>
                </tr>
            </table>
                        </td>
           </tr>
                        </table>
        </td>
    </tr>

</table>

</div>
</body>
</html>
